package cn.tedu.boot04.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BminController {
    @RequestMapping("/bmi")
    public String bmic(Double h,Double w){
        Double num =w/(h*h);
        if(num<20){
            return "瘦了";
        }
        if(num<25){
            return "正常";
        }
        return "胖了";
    }
}
